const routes = [
  {
    path: '/',
    name: '工作台',
    component: './dashboard',
  },
  {
    path: '/form',
    name: '表单',
    component: './form',
  },
  {
    path: '/list',
    name: '列表',
    component: './list',
  },
  {
    path: '/system/menu',
    name: '菜单管理',
    component: './system/menu',
  },
  {
    path: '/success',
    name: '成功',
    component: './success',
  },
  {
    path: '/404',
    name: '404',
    component: './404',
  },
  {
    path: '/login',
    name: '登录',
    component: './login',
  },
  {
    path: '/products',
    name: '商品管理',
    icon: 'ShoppingOutlined',
    children: [
      {
        path: '/products/category',
        name: '分类管理',
        component: './products/category',
        menuConfig: {
          icon: 'AppstoreOutlined'
        }
      },
      {
        path: '/products/brand',
        name: '品牌管理',
        component: './products/brand',
        menuConfig: {
          icon: 'TagOutlined'
        }
      },
      {
        path: '/products/product',
        name: '商品列表',
        component: './products/product',
        menuConfig: {
          icon: 'ShoppingOutlined'
        }
      },
      {
        path: '/products/detail/:id',
        name: '商品详情',
        component: './products/detail',
        hideInMenu: true
      }
    ]
  }
];

export default routes; 